import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/api/message/get_list',
    method: 'get',
    params: query
  })
}

export function changeStatus(val, id) {
  return request({
    url: '/api/message/change_status',
    method: 'get',
    params: {
      id: id,
      status: val
    }
  })
}

export function del(id) {
  return request({
    url: '/api/message/del',
    method: 'get',
    params: { id }
  })
}

export function create(data) {
  return request({
    url: '/api/message/create',
    method: 'post',
    data
  })
}

